import axios from 'axios';
let base = '';
//注册
export const register = params => {
  return axios.post(`${base}/v1/cooperation/register`, params).then(res => res.data);
}
//登录
export const login = params => {
  return axios.post(`${base}/v1/cooperation/login`, params).then(res => res.data);
}
//导出订单明细
export const download_excel = params => {
  return axios.post(`${base}/api/va/cooperation_audit/download_excel`, params).then(res => res.data);
}
//修改密码
export const changepassword = params => {
  return axios.post(`${base}/api/va/cooperation/changepassword`, params).then(res => res.data);
}
//
export const reminderlist = params => {
  return axios.post(`${base}/api/va/reminder/reminderlist`, params).then(res => res.data);
}
//
export const reminder_submint = params => {
  return axios.post(`${base}/api/va/reminder/reminder_submint`, params).then(res => res.data);
}
//解析地址 api/ va/cooperation/taskvariety
export const addressanalysis = params => {
  return axios.post(`${base}/api/tool/addressanalysis`, params).then(res => res.data);
}
// 一单多款
export const taskvariety = params => {
  return axios.post(`${base}api/va/cooperation/taskvariety`, params).then(res => res.data);
}
//添加店铺
export const addshop = params => {
  return axios.post(`${base}/api/va/cooperation_shop/addshop`, params).then(res => res.data);
}
//goodsid获取商品信息
export const goodsidgetinfo = params => {
  return axios.post(`${base}/api/va/cooperation_shop/goodsidgetinfo`, params).then(res => res.data);
}
//店铺列表
export const shoplist = params => {
  return axios.post(`${base}/api/va/cooperation_shop/shoplist`, params).then(res => res.data);
}
//删除店铺
export const delectshop = params => {
  return axios.post(`${base}/api/va/cooperation_shop/delectshop`, params).then(res => res.data);
}
//商家发布任务佣金区间
export const usergetpriceinfo = params => {
  return axios.post(`${base}/api/va/cooperation_price/usergetpriceinfo`, params).then(res => res.data);
}
//商家发布任务扣除费用
export const taskcost = params => {
  return axios.post(`${base}/api/va/cooperation/dy_task_cost`, params).then(res => res.data);
}
//商家发布任务
export const dy_task = params => {
  return axios.post(`${base}/api/va/cooperation/dy_task`, params).then(res => res.data);
}
//快递类型
export const empry_typelist = params => {
  return axios.post(`${base}/api/va/cooperation_ship/empry_typelist`, params).then(res => res.data);
}
//拼多多详情
export const craw_pdd = params => {
  return axios.post(`${base}/api/va/cooperationtask/craw_pdd`, params).then(res => res.data);
}
//下单接口
export const order_create = params => {
  return axios.post(`${base}/api/va/cooperation_ship/order_create`, params).then(res => res.data);
}
//商家任务列表
export const tasklist = params => {
  return axios.post(`${base}/api/va/cooperation/tasklist`, params).then(res => res.data);
}
//商家任务列表 -- 订单明细
export const gettaskinfolist = params => {
  return axios.post(`${base}/api/va/cooperation/gettaskinfolist`, params).then(res => res.data);
}
//更改状态
export const updatetasklist = params => {
  return axios.post(`${base}/api/va/cooperation/updatetasklist`, params).then(res => res.data);
}
//
export const tb_ship = params => {
  return axios.post(`${base}/api/va/cooperation_ship/tb_ship`, params).then(res => res.data);
}
//银行卡转账提交
export const bankcardsubmit = params => {
  return axios.post(`${base}/api/va/cooperationrecharge/bankcardsubmit`, params).then(res => res.data);
}
//银行卡转账列表明细
export const bankcardlist = params => {
  return axios.post(`${base}/api/va/cooperationrecharge/bankcardlist`, params).then(res => res.data);
}
//删除银行卡明细
export const bankcarddel = params => {
  return axios.post(`${base}/api/va/cooperationrecharge/bankcarddel`, params).then(res => res.data);
}
//提交支付宝订单
export const paymentrecord = params => {
  return axios.post(`${base}/api/va/cooperationali/paymentrecord`, params).then(res => res.data);
}
//抖音扣款
export const dy_task_cost = params =>{
  return axios.post(`${base}/api/va/cooperation/d_task_cost`,params).then(res=>res.data);
}
//抖音发布任务
export const dytask = params =>{
  return axios.post(`${base}/api/va/cooperation/d_task`,params).then(res=>res.data);
}
//支付宝列表
export const aliloglist = params => {
  return axios.post(`${base}/api/va/cooperationali/aliloglist`, params).then(res => res.data);
}
//首页显示统计
export const statistics_money = params => {
  return axios.post(`${base}/api/va/cooperation_statistics/statistics_money`, params).then(res => res.data);
}
//
export const statistics_task = params => {
  return axios.post(`${base}/api/va/cooperation_statistics/statistics_task`, params).then(res => res.data);
}
//
export const fundingdetails = params => {
  return axios.post(`${base}/api/va/cooperation_statistics/fundingdetails`, params).then(res => res.data);
}
//个人信息
export const userinfo = params => {
  return axios.post(`${base}/api/va/cooperation/userinfo`, params).then(res => res.data);
}
//代理列表
export const agentlist = params => {
  return axios.post(`${base}/api/va/cooperationagent/agenlist`, params).then(res => res.data);
}
//同步数据
export const synchronizeshop = params => {
  return axios.post(`${base}/api/va/cooperation_shop/synchronizeshop`, params).then(res => res.data);
}
//更新
export const updateorderstatu = params => {
  return axios.post(`${base}/api/va/cooperationorder/updateorderstatu`, params).then(res => res.data);
}
//任务返款列表
export const accontlist = params => {
  return axios.post(`${base}/api/va/cooperationrecharge/accontlist`, params).then(res => res.data);
}
//任务扣款列表
export const paylist = params => {
  return axios.post(`${base}/api/va/cooperationrecharge/paylist`, params).then(res => res.data);
}
//投诉
export const submitcomplaint = params => {
  return axios.post(`${base}/api/va/complaint/submitcomplaint`, params).then(res => res.data);
}
//投诉列表
export const complaintlist = params => {
  return axios.post(`${base}/api/va/complaint/complaintlist`, params).then(res => res.data);
}
//保存模板
export const savetemplate = params => {
  return axios.post(`${base}/api/va/cooperationtemplate/savetemplate`, params).then(res => res.data);
}
//模板列表
export const templatelist = params => {
  return axios.post(`${base}/api/va/cooperationtemplate/templatelist`, params).then(res => res.data);
}
//模板明细
export const templatedata = params => {
  return axios.post(`${base}/api/va/cooperationtemplate/templatedata`, params).then(res => res.data);
}
//查看发布任务
export const taskdate = params => {
  return axios.post(`${base}/api/va/cooperation/taskdate`, params).then(res => res.data);
}
//获取商品信息
export const crawtb = params => {
  return axios.post(`${base}/api/va/cooperation/crawtb`, params).then(res => res.data);
}
//浏览单单价
export const ll_price = params => {
  return axios.post(`${base}/api/va/task/ll_price`, params).then(res => res.data);
}
//隔夜单发布
export const overnight_task = params => {
  return axios.post(`${base}/api/va/task/overnight_task`, params).then(res => res.data);
}
//发货列表
export const waybill_list = params => {
  return axios.post(`${base}/api/va/cooperation_waybill/waybill_list`, params).then(res => res.data);
}
//发货系统
export const addresslist = params => {
  return axios.post(`${base}/api/va/cooperationaddress/addresslist`, params).then(res => res.data);
}
//发货系统-增
export const create_address = params => {
  return axios.post(`${base}/api/va/cooperationaddress/create_address`, params).then(res => res.data);
}
//发货系统-删
export const del_address = params => {
  return axios.post(`${base}/api/va/cooperationaddress/del_address`, params).then(res => res.data);
}
//发货系统-改
export const up_address = params => {
  return axios.post(`${base}/api/va/cooperationaddress/up_address`, params).then(res => res.data);
}
//浏览单扣款
export const ll_taskcost = params => {
  return axios.post(`${base}/api/va/task/ll_taskcost`, params).then(res => res.data);
}
//浏览单发布任务
export const ll_task = params => {
  return axios.post(`${base}/api/va/task/ll_task`, params).then(res => res.data);
}
//订单审核
export const audit_tasklist = params => {
  return axios.post(`${base}/api/va/cooperation_audit/audit_tasklist`, params).then(res => res.data);
}
//隔夜单
export const overnight_taskcost = params =>{
  return axios.post(`${base}/api/va/task/overnight_taskcost`, params).then(res => res.data);
}
//通过审核
export const audit_taskconfirm = params => {
  return axios.post(`${base}/api/va/cooperation_audit/audit_taskconfirm`, params).then(res => res.data);
}
//拒绝审核
export const auditTask_refuse = params => {
  return axios.post(`${base}/api/va/cooperation_audit/auditTask_refuse`, params).then(res => res.data);
}
//评论模版上传
export const evaluate = params => {
  return axios.post(`${base}/api/va/evaluate/uploadevaluate`, params).then(res => res.data);
}
//评论列表
export const evaluate_list = params => {
  return axios.post(`${base}/api/va/cooperation_audit/waitingevaluation`, params).then(res => res.data);
}
//评论单价
export const evaluate_price = params => {
  return axios.post(`${base}/api/va/cooperationtask/pjd_money`, params).then(res => res.data);
}
//评论单扣款
export const evaluate_taskcost = params => {
  return axios.post(`${base}/api/va/cooperationtask/pjd_taskcost`, params).then(res => res.data);
}
//评论单发布任务
export const evaluate_task = params => {
  return axios.post(`${base}/api/va/cooperationtask/pjdtask`, params).then(res => res.data);
}
//评价审核
export const audit_evaluatelist = params => {
  return axios.post(`${base}/api/va/cooperation_audit/auditpj_tasklist`, params).then(res => res.data);
}
//评价审核通过
export const audit_evaluateconfirm = params => {
  return axios.post(`${base}/api/va/cooperation_audit/auditpj_success`, params).then(res => res.data);
}
//评价审核拒绝
export const audit_evaluaterefuse = params => {
  return axios.post(`${base}/api/va/cooperation_audit/auditTask_refuse`, params).then(res => res.data);
}
//代理商家列表
export const agenlist = params => {
  return axios.post(`${base}/api/va/cooperationagent/agenget_commission`, params).then(res => res.data);
}
//代理商家列表one
export const agenlist_One = params => {
  return axios.post(`${base}/api/va/cooperationagent/agenlist`, params).then(res => res.data);
}
//代理商家info
export const ageninfo = params => {
  return axios.post(`${base}/api/va/cooperationagent/ageninfo`, params).then(res => res.data);
}
//代理商家制定价格
export const agenget_price = params => {
  return axios.post(`${base}/api/va/cooperationagent/agenget_price`, params).then(res => res.data);
}
//代理商家价格查询
export const agenget_priceo = params => {
  return axios.post(`${base}/api/va/cooperationagent/agenget_priceo`, params).then(res => res.data);
}
